package com.hzqx.xxzx.proxy;

import com.hzqx.xxzx.proxy.jdkproxy.JdkProxyFactory;

public class Main {
	public static void main(String[] args) {
//		SmsService smsService = new SmsServiceImpl();
//		SmsProxy sProxy = new SmsProxy(smsService);
//		sProxy.sendMessageString();
//		sProxy.sendMessageString();
		
		
		SmsService smsService = (SmsService) JdkProxyFactory.getProxy(new SmsServiceImpl());
		smsService.sendMessageString();
	}
}
